<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="contactList.title"/></title>
    <meta name="heading" content="<fmt:message key='contactList.heading'/>"/>
    <meta name="menu" content="UserMenu"/>
</head>

<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<display:table name="users" defaultsort="1" defaultorder="ascending" class="table" requestURI="" id="contactList" export="true" pagesize="25">

    <display:column property="id" media="csv excel xml pdf" titleKey="user.id"/>
   	<display:column property="lastName" escapeXml="true" sortable="true" titleKey="user.lastName"/>
   	<display:column property="firstName" escapeXml="true" titleKey="user.firstName"/>
   	<display:column property="phoneNumber" escapeXml="true" titleKey="user.phoneNumber"/>
   	<display:column property="email" sortable="true" titleKey="user.email" style="width: 25%" autolink="true" media="csv excel xml pdf html"/>
   	<display:column property="address.address" escapeXml="true" titleKey="user.address.address"/>
   	<display:column property="address.city" escapeXml="true" titleKey="user.address.city"/>
   	<display:column property="address.province" escapeXml="true" titleKey="user.address.province"/>
   	<display:column property="address.postalCode" escapeXml="true" titleKey="user.address.postalCode"/>
 
    <display:setProperty name="paging.banner.item_name"><fmt:message key="contactList.contacts"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="contactList.contacts"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="contactList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="contactList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="contactList.title"/>.pdf</display:setProperty>
</display:table>

<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<script type="text/javascript">
    highlightTableRows("contactList");
</script>